import i18n from '../../i18n/i18n'
export const tableOption = {
  border: true,
  selection: true,
  index: false,
  indexLabel: i18n.t('publics.serial'),
  indexWidth: i18n.t('language') === 'language' ? 80 : 50,
  stripe: true,
  menuAlign: 'center',
  menuWidth: 350,
  align: 'center',
  refreshBtn: true,
  searchSize: 'mini',
  addBtn: false,
  editBtn: false,
  delBtn: false,
  viewBtn: false,
  saveBtnTitle: false,
  column: [
    {
      label: i18n.t('prodList.shopName'),
      prop: 'shopName',
      searchLabelWidth: i18n.t('language') === 'language' ? 100 : 80,
      search: true
    },
    {
      label: i18n.t('shop.shopLogo'),
      prop: 'shopLogo',
      type: 'upload',
      width: 150,
      listType: 'picture-img'
    },
    {
      label: i18n.t('shop.shopProfile'),
      prop: 'intro',
      searchLabelWidth: i18n.t('language') === 'language' ? 100 : 80,
      search: true
    },
    {
      width: 150,
      label: i18n.t('shop.storeStatus'),
      prop: 'shopStatusList',
      slot: true,
      searchLabelWidth: i18n.t('language') === 'language' ? 100 : 80,
      search: true,
      type: 'select',
      dicData: [
        {
          value: [1],
          label: i18n.t('shop.inOperation')
        }, {
          value: [2],
          label: i18n.t('groups.offlineViolation')
        }
        // , {
        //   value: 3,
        //   label: i18n.t('product.pendingReview')
        // }, {
        //   value: -1,
        //   label: i18n.t('shop.nonactivated')
        // }
      ]
    },
    // {
    //   width: 150,
    //   label: i18n.t('distributionMsg.auditStatus'),
    //   prop: 'status',
    //   slot: true,
    //   searchLabelWidth: i18n.t('language') === 'language' ? 100 : 80,
    //   search: true,
    //   type: 'select',
    //   dicData: [
    //     {
    //       value: 0,
    //       label: i18n.t('liveRoom.notReviewed')
    //     }, {
    //       value: 1,
    //       label: i18n.t('shop.passed')
    //     }, {
    //       value: -1,
    //       label: i18n.t('shop.notPass')
    //     }
    //   ]
    // },
    {
      label: i18n.t('order.applicationTime'),
      width: 160,
      prop: 'createTime'
    },
    {
      label: i18n.t('shop.contactTel'),
      width: 160,
      prop: 'mobile',
      searchLabelWidth: i18n.t('language') === 'language' ? 100 : 80,
      search: true
    }
  ]
}
